#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;

int gcd(int a, int b) {
    int l = max(a, b);
    int s = min(a, b);
    if (l % s == 0) 
        return s;
    else 
        return gcd(s, l % s);
}
int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    int _ = gcd(a, b);
    int y = a * b / _; // a和b的最小公倍数
    _ = gcd(y, c);
    int x = y * c / _;
    cout << x << endl;
    return 0;
}